set install_path=.\dist

del .\dist\py_tool.exe
del %install_path%\py_tool.exe
pyinstaller -F window_root.py -w -n py_tool
copy .\dist\py_tool.exe %install_path%\py-tool\py_tool.exe
cd %install_path%\py-tool
.\py_tool.exe

@REM chcp 65001

@REM set /p choice=请确认是否执行压缩操作？(Y/N)N
@REM if "%choice%"=="Y" (
@REM     echo 执行压缩操作...
@REM     REM
@REM     del %install_path%\py_tool.7z
@REM     D:\java\code\code-k\python\7-Zip\7z a %install_path%\py_tool.7z %install_path%\*
@REM ) else (
@REM     echo 取消压缩操作...
@REM )

del py_tool.exe
